package com.jt.pojo;

public class User {
    private String conn;
    public User() {
        System.out.println("创建对象");
    }
    public void init(){
        this.conn="数据库资源";
        System.out.println(this.conn);
    }
    public void say(){
        System.out.println("哈哈哈哈哈哈");
    }

    public void destroy(){
        this.conn=null;
        System.out.println("释放资源:"+this.conn);
    }
}
